#include "Led.h"

#define LEDPIN 22

void Led_Init(void)
{
    pinMode(LEDPIN,OUTPUT);

    digitalWrite(LEDPIN,LOW);

    Serial.println("Led Init success");

    //Serial.printf("ESP32 HEAP %d\r\n",esp_get_free_heap_size());
}

void Led_Open(void)
{
    digitalWrite(LEDPIN,HIGH);
    Serial.println("Led Open");
    Serial.printf("Led.cpp:%d,ESP32 HEAP %d\r\n",__LINE__, esp_get_free_heap_size());
} 

void Led_Close(void)
{
    digitalWrite(LEDPIN,LOW);
    Serial.println("Led Close");
    Serial.printf("Led.cpp:%d,ESP32 HEAP %d\r\n",__LINE__, esp_get_free_heap_size());
}
